package com.guoxue.domain;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.InputStream;
import java.io.Serializable;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import org.hibernate.annotations.GenericGenerator;

/**
 * 由工具生成的java类,手工修改无效!
 * 
 * 
 */
@Entity
@Table(name = "bookConfigVo")
public class BookConfigVo implements Cloneable, Serializable {
	// /////////////////////////////////////////////////////////////////////////////
	// --->字段定义:
	// /////////////////////////////////////////////////////////////////////////////
	/**
	 * 起始章节ID
	 */
	private int beginChapterId = 0;

	/**
	 * 起始计划ID
	 */
	private int beginPlanId = 0;

	/**
	 * 典籍ID
	 */
	@Id
	private int bookId;

	/**
	 * 典籍名称
	 */
	private String bookName = "";

	/**
	 * 结束章节ID
	 */
	private int endChapterId = 0;

	/**
	 * 结束计划ID
	 */
	private int endPlanId = 0;

	/**
	 * 横版图片
	 */
	private String picX = "";

	/**
	 * 竖版图片
	 */
	private String picY = "";

	/**
	 * 典籍诵读
	 */
	private String reader = "";

	/**
	 * 记录状态,0表示正常,-0x10表示已删除
	 */
	private int sysflag = 0;
	/**
	 * 计划图片
	 */
	private String planPic = "";

	/**
	 * 典籍作者
	 */
	private String writer = "";
	/**
	 * 诵读书籍
	 */
	private String readPic = "";
	/**
	 * 小奖章图片
	 */
	private String picIcon = "";
	/**
	 * 书名图片
	 */
	private String picTile = "";

	// /////////////////////////////////////////////////////////////////////////////
	// --->getter and setter:
	// /////////////////////////////////////////////////////////////////////////////
	/**
	 * 起始章节ID
	 */
	public int getBeginChapterId() {
		return this.beginChapterId;
	}

	/**
	 * 起始章节ID
	 */
	public void setBeginChapterId(int value_new_) {
		this.beginChapterId = value_new_;
	}

	/**
	 * 起始计划ID
	 */
	public int getBeginPlanId() {
		return this.beginPlanId;
	}

	/**
	 * 起始计划ID
	 */
	public void setBeginPlanId(int value_new_) {
		this.beginPlanId = value_new_;
	}

	/**
	 * 典籍ID
	 */
	public int getBookId() {
		return this.bookId;
	}

	/**
	 * 典籍ID
	 */
	public void setBookId(int value_new_) {
		this.bookId = value_new_;
	}

	/**
	 * 典籍名称
	 */
	public String getBookName() {
		return this.bookName;
	}

	/**
	 * 典籍名称
	 */
	public void setBookName(String value_new_) {
		this.bookName = value_new_;
	}

	/**
	 * 结束章节ID
	 */
	public int getEndChapterId() {
		return this.endChapterId;
	}

	/**
	 * 结束章节ID
	 */
	public void setEndChapterId(int value_new_) {
		this.endChapterId = value_new_;
	}

	/**
	 * 结束计划ID
	 */
	public int getEndPlanId() {
		return this.endPlanId;
	}

	/**
	 * 结束计划ID
	 */
	public void setEndPlanId(int value_new_) {
		this.endPlanId = value_new_;
	}

	/**
	 * 横版图片
	 */
	public String getPicX() {
		return this.picX;
	}

	/**
	 * 横版图片
	 */
	public void setPicX(String value_new_) {
		this.picX = value_new_;
	}

	/**
	 * 竖版图片
	 */
	public String getPicY() {
		return this.picY;
	}

	/**
	 * 竖版图片
	 */
	public void setPicY(String value_new_) {
		this.picY = value_new_;
	}

	/**
	 * 典籍诵读
	 */
	public String getReader() {
		return this.reader;
	}

	/**
	 * 典籍诵读
	 */
	public void setReader(String value_new_) {
		this.reader = value_new_;
	}

	/**
	 * 记录状态,0表示正常,-0x10表示已删除
	 */
	public int getSysflag() {
		return this.sysflag;
	}

	/**
	 * 记录状态,0表示正常,-0x10表示已删除
	 */
	public void setSysflag(int value_new_) {
		this.sysflag = value_new_;
	}

	/**
	 * 典籍作者
	 */
	public String getWriter() {
		return this.writer;
	}

	/**
	 * 典籍作者
	 */
	public void setWriter(String value_new_) {
		this.writer = value_new_;
	}
	/**
	 * 计划图片
	 */
	public String getPlanPic() {
		return planPic;
	}
	/**
	 * 计划图片
	 */
	public void setPlanPic(String planPic) {
		this.planPic = planPic;
	}
	/**
	 * 诵读图片
	 */
	public String getReadPic() {
		return readPic;
	}
	/**
	 * 诵读图片
	 */
	public void setReadPic(String readPic) {
		this.readPic = readPic;
	}
	/**
	 * 奖章图片
	 * @return
	 */
	public String getPicIcon() {
		return picIcon;
	}
	/**
	 * 奖章图片
	 */
	public void setPicIcon(String picIcon) {
		this.picIcon = picIcon;
	}
	/**
	 * 书名图片
	 * @return
	 */
	public String getPicTile() {
		return picTile;
	}
	/**
	 * 书名图片
	 */
	public void setPicTile(String picTile) {
		this.picTile = picTile;
	}

	// /////////////////////////////////////////////////////////////////////////////
	// --->流读写方法和打印方法:
	// /////////////////////////////////////////////////////////////////////////////
	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder();
		final String info;

		sb.append(",beginChapterId=" + this.beginChapterId);
		sb.append(",beginPlanId=" + this.beginPlanId);
		sb.append(",bookId=" + this.bookId);
		sb.append(",bookName=" + this.bookName);
		sb.append(",endChapterId=" + this.endChapterId);
		sb.append(",endPlanId=" + this.endPlanId);
		sb.append(",picX=" + this.picX);
		sb.append(",picY=" + this.picY);
		sb.append(",reader=" + this.reader);
		sb.append(",sysflag=" + this.sysflag);
		sb.append(",writer=" + this.writer);
		sb.append(",picIcon=" + this.picIcon);
		sb.append(",picTile=" + this.picTile);

		info = sb.toString();
		return info;
	}

	// /////////////////////////////////////////////////////////////////////////////
	// --->clone and copy:
	// /////////////////////////////////////////////////////////////////////////////
	@Override
	public Object clone() throws CloneNotSupportedException {
		return (BookConfigVo) super.clone();
	}

	/**
	 * 令当前对象(this)成为指定对象(src)的拷贝
	 * 对简单数据类型的数组,进行深层复制
	 * 对dataMap数据,进行dataMap的整体复制
	 * @param src
	 */
	public void copyOf(BookConfigVo src){
		this.beginChapterId = src.beginChapterId;
		this.beginPlanId = src.beginPlanId;
		this.bookId = src.bookId;
		this.bookName = src.bookName;
		this.endChapterId = src.endChapterId;
		this.endPlanId = src.endPlanId;
		this.picX = src.picX;
		this.picY = src.picY;
		this.reader = src.reader;
		this.sysflag = src.sysflag;
		this.writer = src.writer;
		this.picIcon = src.picIcon;
		this.picTile = src.picTile;
	}

}
